public class ProductTest {
    public static void main(String[] args) {
        Product pro = new Product();
        pro.setPrice(100000.0);
        pro.setWeight(200.0);
        pro.setName("白菜");
        pro.setFactoryNam("岳氏整票儿");

        Product obj = new Product();
        obj.setName("白菜");
        obj.setFactoryNam("岳氏整票儿");


        System.out.println("商品价格："+pro.getPrice());
        System.out.println("商品重量："+pro.getWeight());
        System.out.println("商品信息："+pro.toString());

        System.out.println("比较结果："+pro.equals(obj));

    }
}
